import { _decorator, Component, Node,Animation } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Ring')
export class Ring extends Component {
    private ani:Animation=null;
    protected onLoad(): void {
        this.ani =this.getComponent(Animation);
    }
    protected onEnable(): void {
        this.ani.play();       
        }
    
        protected onDisable(): void {
            this.ani.stop();
        }
    
}


